package com.heima.model.behavior.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 文章点赞行为表
 * @author huangjianfei
 * @date 2024/11/08
 */
@Data
@TableName("ap_article_likes")
public class ApArticleLikes {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField("article_id")
    private Long articleId;

    @TableField("user_id")
    private Integer userId;

    // 0 点赞 1 未点赞
    @TableField("like_action")
    private Short likeAction;

    @TableField("like_timestamp")
    private Date likeTimestamp;

}
